﻿
@model XQ.SP.Model.UsersItem
@{
    ViewBag.Title = "用户 信息";
    ViewBag.TextName = "用户 信息";
    Layout = "~/Views/Shared/Admin.cshtml";
}
<link rel="stylesheet" type="text/css" href="/Res/CSS/css/base.css" />
<link rel="stylesheet" type="text/css" href="/Res/CSS/css/styles.css" />

<div class="breadcrumb">
	<div class="route fl">
		<a href="/Users/List">管理列表</a> 
		<i>&gt;</i>
		<span>信息编辑</span> 
	</div>
</div>

@using (Html.BeginForm())
{
        @Html.HiddenFor(model => model.Id)
        @Html.HiddenFor(model => model.Status)
        @Html.HiddenFor(model => model.Created)
        @Html.HiddenFor(model => model.Creator)
        @Html.HiddenFor(model => model.Modifier)
        @Html.HiddenFor(model => model.Modified)
        List<SelectListItem> ListSeach = new List<SelectListItem>();
            <input id="PhotoPath" name="PhotoPath" type="hidden" value="@Model.PhotoPath" />
<div style=" font-size: 22px; color: red; margin-top:15px; text-align: center; width: 100%;">@Html.ValidationSummary(true)</div>
<div class="pd15">

    <div class="form-item">
		<label class="form-label">用户名</label>
		<div class="input-block"><input type="text" id="UserName" name="UserName"  value="@Model.UserName" class="input" placeholder="请输入用户名" /></div>
	</div>
@*    <div class="form-item">
		<label class="form-label">编号</label>
		<div class="input-block"><input type="text" id="NO" name="NO"  value="@Model.NO" class="input" placeholder="请输入编号" /></div>
	</div>
    <div class="form-item">
		<label class="form-label">邮箱</label>
		<div class="input-block"><input type="text" id="Email" name="Email"  value="@Model.Email" class="input" placeholder="请输入邮箱" /></div>
	</div>
    <div class="form-item">
		<label class="form-label">身份证</label>
		<div class="input-block"><input type="text" id="IDCard" name="IDCard"  value="@Model.IDCard" class="input" placeholder="请输入身份证" /></div>
	</div>*@
@*    <div class="form-item">
		<label class="form-label">手机号码</label>
		<div class="input-block"><input type="text" id="Mobil" name="Mobil"  value="@Model.Mobil" class="input" placeholder="请输入手机号码" /></div>
	</div>*@
@*    <div class="form-item">
		<label class="form-label">真实名字</label>
		<div class="input-block"><input type="text" id="RealName" name="RealName"  value="@Model.RealName" class="input" placeholder="请输入真实名字" /></div>
	</div>*@
    <div class="form-item">
		<label class="form-label">密码</label>
		<div class="input-block"><input type="text" id="UserPassword" name="UserPassword"  value="@Model.UserPassword" class="input" placeholder="请输入密码" /></div>
	</div>
    <div class="form-item">
		<label class="form-label">电话号码</label>
		<div class="input-block"><input type="text" id="Telephone" name="Telephone"  value="@Model.Telephone" class="input" placeholder="请输入电话号码" /></div>
	</div>
@*    <div class="form-item">
		<label class="form-label">QQ</label>
		<div class="input-block"><input type="text" id="QQ" name="QQ"  value="@Model.QQ" class="input" placeholder="请输入QQ" /></div>
	</div>
    <div class="form-item">
		<label class="form-label">性别</label>
		<div class="input-block"><input type="text" id="Sex" name="Sex"  value="@Model.Sex" class="input" placeholder="请输入性别" /></div>
	</div>
    <div class="form-item">
		<label class="form-label">生日</label>
		<div class="input-block"><input type="text" id="Birthday" name="Birthday"  value="@Model.Birthday" class="input" placeholder="请输入生日" /></div>
	</div>
<script type="text/javascript" src="/Res/Files/UploadImage/Js/COM_jQuery.js"></script>
<script type="text/javascript" src="/Res/CSS/js/datetimepicker.min.js"></script>
<script type="text/javascript">
	$("#Birthday").datetimepicker({
		format:"Y-m-d H:m:s",
		timepicker:false,
	});
</script>*@
   @* <div class="form-item">
		<label class="form-label">地址</label>
		<div class="input-block"><input type="text" id="Address" name="Address"  value="@Model.Address" class="input" placeholder="请输入地址" /></div>
	</div>
    <div class="form-item">
		<label class="form-label">个性描述</label>
		<div class="input-block"><input type="text" id="Description" name="Description"  value="@Model.Description" class="input" placeholder="请输入个性描述" /></div>
	</div>
    <script src="/Res/Files/UploadImage/Js/COM_jQuery.js"></script>
    <script src="/Res/Files/UploadImage/Js/ArtDialog/ART_ArtDialog.js"></script>
    <script src="/Res/Files/UploadImage/Js/ArtDialog/ART_ArtDialogTip.js"></script>
    <link href="/Res/Files/UploadImage/uploadify.css" rel="stylesheet" />
    <script src="/Res/Files/UploadImage/swfobject.js"></script>
    <script src="/Res/Files/UploadImage/jquery.uploadify.js"></script>
    <script src="/Res/Files/UploadImage/Js/COM_Fun.js"></script>
    <div class="form-item">
        <label class="form-label">头像</label>
        <div class="input-block">
            <input id="filePhotoPath" style="text-align:left;float:left;" type="file" />
            <div class="fileUploadify" id="uploadfileQueuePhotoPath"></div>
            <img src="@Model.PhotoPath" id="PhotoPath1" name="PhotoPath1" style="height: 100px; margin-top:10px;margin-left:15px;">
        </div>
    </div>
    <script>
        $(function () {
            _FunSingle.fileUploadify("filePhotoPath", "/PM/UpdateImageOne?btnName=PhotoPath", "uploadfileQueuePhotoPath"
                , 1, '200MB', '*.jpg;*.jpeg;*.gif;*.png;*.bmp;', '*.jpg;*.jpeg;*.gif;*.png;*.bmp;', '/Res/Files/UploadFile/browse-btn.png');
        });
    </script>*@
@*    <div class="form-item">
		<label class="form-label">注册时间</label>
		<div class="input-block"><input type="text" id="CreateTime" name="CreateTime"  value="@Model.CreateTime" class="input" placeholder="请输入注册时间" /></div>
	</div>
<script type="text/javascript" src="/Res/Files/UploadImage/Js/COM_jQuery.js"></script>
<script type="text/javascript" src="/Res/CSS/js/datetimepicker.min.js"></script>
<script type="text/javascript">
	$("#CreateTime").datetimepicker({
		format:"Y-m-d H:m:s",
		timepicker:false,
	});
</script>
    <div class="form-item">
		<label class="form-label">上次登录时间</label>
		<div class="input-block"><input type="text" id="UpLoginTime" name="UpLoginTime"  value="@Model.UpLoginTime" class="input" placeholder="请输入上次登录时间" /></div>
	</div>
<script type="text/javascript" src="/Res/Files/UploadImage/Js/COM_jQuery.js"></script>
<script type="text/javascript" src="/Res/CSS/js/datetimepicker.min.js"></script>
<script type="text/javascript">
	$("#UpLoginTime").datetimepicker({
		format:"Y-m-d H:m:s",
		timepicker:false,
	});
</script>
    <div class="form-item">
		<label class="form-label">积分</label>
		<div class="input-block"><input type="text" id="Integral" name="Integral"  value="@Model.Integral" class="input" placeholder="请输入积分" /></div>
	</div>
    <div class="form-item">
		<label class="form-label">等级</label>
		<div class="input-block"><input type="text" id="Degree" name="Degree"  value="@Model.Degree" class="input" placeholder="请输入等级" /></div>
	</div>
     <div class="form-item">
		<label class="form-label">认证</label>
		<div class="input-block">
            @Html.DropDownList("Attest", (IEnumerable<SelectListItem>)ViewBag.ListAttest)
		</div>
	</div>
    <div class="form-item">
		<label class="form-label">帖子数</label>
		<div class="input-block"><input type="text" id="PostsCount" name="PostsCount"  value="@Model.PostsCount" class="input" placeholder="请输入帖子数" /></div>
	</div>
    <div class="form-item">
		<label class="form-label">回复数</label>
		<div class="input-block"><input type="text" id="PostsSaidCount" name="PostsSaidCount"  value="@Model.PostsSaidCount" class="input" placeholder="请输入回复数" /></div>
	</div>
    <div class="form-item">
		<label class="form-label">好评数</label>
		<div class="input-block"><input type="text" id="GoodSaidCount" name="GoodSaidCount"  value="@Model.GoodSaidCount" class="input" placeholder="请输入好评数" /></div>
	</div>
   <div class="form-item">
		<label class="form-label">微信</label>
		<div class="input-block"><input type="text" id="WeiXin" name="WeiXin"  value="@Model.WeiXin" class="input" placeholder="请输入微信" /></div>
	</div>
    <div class="form-item">
		<label class="form-label">贡献值</label>
		<div class="input-block"><input type="text" id="UsefulCount" name="UsefulCount"  value="@Model.UsefulCount" class="input" placeholder="请输入贡献值" /></div>
	</div>
    <div class="form-item">
		<label class="form-label">U币</label>
		<div class="input-block"><input type="text" id="UMoney" name="UMoney"  value="@Model.UMoney" class="input" placeholder="请输入U币" /></div>
	</div>*@
    <div class="form-item">
		<label class="form-label">用户类型</label>
		<div class="input-block">
            @Html.DropDownList("UserType", (IEnumerable<SelectListItem>)ViewBag.ListUserType)
		</div>
	</div>
@*    <div class="form-item">
		<label class="form-label">学号</label>
		<div class="input-block"><input type="text" id="StuNo" name="StuNo"  value="@Model.StuNo" class="input" placeholder="请输入学号" /></div>
	</div>
    <div class="form-item">
		<label class="form-label">身份证号</label>
		<div class="input-block"><input type="text" id="SelfID" name="SelfID"  value="@Model.SelfID" class="input" placeholder="请输入身份证号" /></div>
	</div>
    <div class="form-item">
		<label class="form-label">名称</label>
		<div class="input-block"><input type="text" id="ClassName" name="ClassName"  value="@Model.ClassName" class="input" placeholder="请输入名称" /></div>
	</div>
    <div class="form-item">
		<label class="form-label">角色Ids</label>
		<div class="input-block"><input type="text" id="RolesId" name="RolesId"  value="@Model.RolesId" class="input" placeholder="请输入角色Ids" /></div>
	</div>
    <div class="form-item">
		<label class="form-label">角色</label>
		<div class="input-block"><input type="text" id="Roles" name="Roles"  value="@Model.Roles" class="input" placeholder="请输入角色" /></div>
	</div>
    <div class="form-item">
		<label class="form-label">部门Id</label>
		<div class="input-block"><input type="text" id="DepaId" name="DepaId"  value="@Model.DepaId" class="input" placeholder="请输入部门Id" /></div>
	</div>
    <div class="form-item">
		<label class="form-label">部门名称</label>
		<div class="input-block"><input type="text" id="DepaName" name="DepaName"  value="@Model.DepaName" class="input" placeholder="请输入部门名称" /></div>
	</div>
    <div class="form-item">
		<label class="form-label">背景图片</label>
		<div class="input-block"><input type="text" id="ImagesBlog" name="ImagesBlog"  value="@Model.ImagesBlog" class="input" placeholder="请输入背景图片" /></div>
	</div>
    <div class="form-item">
		<label class="form-label">点赞数</label>
		<div class="input-block"><input type="text" id="GoodCount" name="GoodCount"  value="@Model.GoodCount" class="input" placeholder="请输入点赞数" /></div>
	</div>
    <div class="form-item">
		<label class="form-label">上级ID</label>
		<div class="input-block"><input type="text" id="ParentId" name="ParentId"  value="@Model.ParentId" class="input" placeholder="请输入上级ID" /></div>
	</div>*@
@*    <div class="form-item">
		<label class="form-label">等级名</label>
		<div class="input-block">
            @Html.DropDownList("SysDegreeId", (IEnumerable<SelectListItem>)ViewBag.ListSysDegreeId)
		</div>
	</div>*@
    <script>
        function US(data) {
            var nme = data.substr(data.lastIndexOf("|") + 1);
            var path = data.substr(0, data.lastIndexOf("|"));
            if (nme.length > 0 & data.lastIndexOf("||") < 0) {
                try{
                    document.getElementById(nme + "1").src = path;
                }catch(e){}
                try{
                    document.getElementById(nme).value = path;
                }catch(e){}
                    try{
                        document.getElementById(nme + "N").innerHTML = path.substr(path.lastIndexOf("/") + 1);
                    } catch (e) { }
            }
        }
    </script>
    
<div class="form-item">
		<div class="input-block">
			<button type="submit" class="btn btn-large" id="btn-publish">立即保存</button>
		</div>
	</div>
</div>
}

